import 'package:love_app/common/su_dio.dart';
import 'package:love_app/config/path_url.dart';
import 'package:love_app/model/response_model.dart';
import 'package:love_app/service/base_api.dart';

// 删除恋爱记录
class DeleteLoveLog extends BaseApi{
  String path = PathUrl.deleteLoveRecord;

  Future<bool> delete(String token, String fromToken, int itemId)async{
    Map headers = {
      'X-Auth-Token': token,
    };
    Map data = {
      'l_id': itemId,
      'form_token': fromToken,
    };
    ResponseModel responseModel =  await SuDio().postRequest(path, headersMap: headers, data: data);
    return isSuccess(responseModel.data);
  }
}